package com.fzy.designpattern.chain;

public class Interceptor1 extends Interceptor {

    @Override
    public void beginIntecept(String condition) {

        if ("interceptor1".equals(condition)) {
            System.out.println("拦截器到interceptor1");
        } else {
            System.out.println("interceptor1无法处理，到下一个拦截器");
            nextChain.beginIntecept(condition);
        }
    }

}
